package com.gtenacg.cartoonservice.service;

import com.gtenacg.cartoonservice.pojo.model.Author;
import org.springframework.dao.DuplicateKeyException;

import java.sql.SQLIntegrityConstraintViolationException;
import java.util.List;

/**
* @author 86198
* @description 针对表【author(作者表)】的数据库操作Service
* @createDate 2024-05-13 16:04:37
*/
public interface AuthorService {

    List<Author> list();

    Integer insert(Author author) throws DuplicateKeyException;

    void update(Author author);

    void delete(List<Integer> ids);

    List<Author> search(String name, String gender);
}
